package cn.com.zero.front.auth.service.impl;

import cn.com.zero.api.auth.vo.LockedUserVO;
import cn.com.zero.common.auth.service.impl.AbstractLockedUserService;
import cn.com.zero.front.auth.mapper.IUserLoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author xiongxj
 * @version 1.0.0
 * @Description 用户端被锁定用户操作的service实现类
 * @createTime 2023/3/30 17:02
 */
@Service
public class FrontLockedUserService extends AbstractLockedUserService {
    private IUserLoginMapper userLoginMapper;

    @Override
    protected Map<String, LockedUserVO> getUsers(List<String> userIds) {
        return userLoginMapper.getLockedUsersDetailInfo(userIds);
    }

    @Override
    protected Integer deleteErrorLoginLog(String userId) {
        return userLoginMapper.deleteErrorLoginLog(userId);
    }

    @Autowired
    public void setUserLoginMapper(IUserLoginMapper userLoginMapper) {
        this.userLoginMapper = userLoginMapper;
    }
}
